Jonas Ådahl [Fri, 10 Aug 2018 15:07:05 +0000 (17:07 +0200)]
gdk/wayland: Don't remap non-subsurface as subsurface
Let's just use the fact that a window was mapped as a subsurface to
remap it above another transient parent instead of relying on the more
complicated 'should-map-as-subsurface' helper function.
Claude Paroz [Thu, 9 Aug 2018 10:37:29 +0000 (10:37 +0000)]
Update French translation
Matthias Clasen [Wed, 8 Aug 2018 09:18:32 +0000 (09:18 +0000)]
Merge branch 'gtk-3-24-improve-error-message' into 'gtk-3-24'
gtkplacessidebar: Improve error message when unlocking volume fails
See merge request GNOME/gtk!266
Baurzhan Muftakhidinov [Mon, 6 Aug 2018 17:16:43 +0000 (17:16 +0000)]
Update Kazakh translation
Piotr Drąg [Mon, 6 Aug 2018 16:55:14 +0000 (18:55 +0200)]
Update Polish translation
Matthias Clasen [Mon, 6 Aug 2018 12:14:29 +0000 (12:14 +0000)]
Merge branch 'gtk-3-24-fix-link-error' into 'gtk-3-24'
font chooser widget: Add missing build flags
See merge request GNOME/gtk!290
Kouhei Sutou [Mon, 6 Aug 2018 07:15:48 +0000 (16:15 +0900)]
font chooser widget: Add missing build flags
If we detect HarfBuzz and PangoFT2, GtkFontChooserWidget uses them. So
we need to add CFLAGS and LIBS of them to GTK_DEP_CFLAGS/LIBS. If we
don't add them, MinGW build fails to link.
Aurimas Černius [Sun, 5 Aug 2018 13:02:30 +0000 (16:02 +0300)]
Updated Lithuanian translation
Matthias Clasen [Sun, 5 Aug 2018 01:39:10 +0000 (21:39 -0400)]
Make color picker circular
The need for center alignment was pointed out by Timm Baeder.
Matthias Clasen [Fri, 3 Aug 2018 00:55:07 +0000 (20:55 -0400)]
color picker: Also try kwin
use a kwin color picker when we run under kwin.
Matthias Clasen [Fri, 3 Aug 2018 00:54:21 +0000 (20:54 -0400)]
Only use the portal color picker when appropriate
This is just moving this check around.
Matthias Clasen [Fri, 3 Aug 2018 00:53:37 +0000 (20:53 -0400)]
Add a kwin color picker
This uses the org.kde.kwin.ColorPicker interface.
Piotr Drąg [Sat, 4 Aug 2018 17:39:31 +0000 (19:39 +0200)]
Update Polish translation
Benjamin Otte [Tue, 31 Jul 2018 20:42:26 +0000 (22:42 +0200)]
container: Deprecate focus chains
Matthias Clasen [Tue, 31 Jul 2018 17:31:57 +0000 (13:31 -0400)]
Deprecate show_all apis
These functions are gone in GTK+ 4, so deprecate them here.
Andrea Azzarone [Thu, 26 Jul 2018 08:16:32 +0000 (10:16 +0200)]
window: Fallback to CSD titlebar in focus-chain
CSD titlebar are included in the focus-chain. The logic used makes sure that the
initial focus avoids the titlebar, but tabbing around will eventually get there.
This logic fails in case the window has no other focusable widgets apart from
the ones in the header-bar. If this happens keynav focus will be lost. To handle
the above scenario, we need to fallback to focus the header-bar (if any).
Fixes: https://gitlab.gnome.org/GNOME/gnome-software/issues/404
Matthias Clasen [Tue, 31 Jul 2018 01:54:13 +0000 (01:54 +0000)]
Update a11y test results
The color picker shows up here.
Matthias Clasen [Mon, 30 Jul 2018 22:33:13 +0000 (18:33 -0400)]
3.23.2
Matthias Clasen [Mon, 30 Jul 2018 21:59:16 +0000 (17:59 -0400)]
color picker: Better debug spew
This will help in debugging issues.
Matthias Clasen [Thu, 26 Jul 2018 22:50:03 +0000 (18:50 -0400)]
Add a color picker implementation for gnome-shell
This adds a GtkColorPicker implementation that talks
to gnome-shell to get a color.
Matthias Clasen [Thu, 26 Jul 2018 22:48:37 +0000 (18:48 -0400)]
Add a color picker implementation for portals
This adds a GtkColorPicker implementation that talks
to the screnshot portal to get a color.
Matthias Clasen [Thu, 26 Jul 2018 22:46:37 +0000 (18:46 -0400)]
color editor: Add a color picker button
The button is shown if we have a GtkColorPicker implementation.
Currently, there are none, so the button is never shown.
Matthias Clasen [Thu, 26 Jul 2018 22:45:49 +0000 (18:45 -0400)]
Add a color picker interface
This will be used in the color chooser, in subsequent commits.
Piotr Drąg [Mon, 30 Jul 2018 20:44:10 +0000 (22:44 +0200)]
Update POTFILES.in
Matthias Clasen [Mon, 30 Jul 2018 19:31:37 +0000 (19:31 +0000)]
Merge branch 'wl_text_input_clean' into 'gtk-3-24'
Replace gtk_text_input with text_input_unstable_v3 support
See merge request GNOME/gtk!272
Dorota Czaplejewicz [Thu, 29 Mar 2018 17:49:10 +0000 (19:49 +0200)]
imwayland: Add text-input-unstable-v3 support
The wayland input module now represents text-input-unstable-v3 support, while the old module supporting gtk-text-input was renamed to gtkwayland.
Matthias Clasen [Mon, 30 Jul 2018 14:53:48 +0000 (14:53 +0000)]
Merge branch 'issue1214-tooltips-win32' into 'gtk-3-24'
Gdk-Win32: Correct handling of transient state changes
See merge request GNOME/gtk!248
Piotr Drąg [Sun, 29 Jul 2018 18:24:41 +0000 (20:24 +0200)]
Update Polish translation
Matthias Clasen [Sun, 29 Jul 2018 13:08:05 +0000 (13:08 +0000)]
Updates
Matthias Clasen [Fri, 27 Jul 2018 11:56:56 +0000 (11:56 +0000)]
Include Emoji category icons as resources too
These icons are very new in the Adwaita icon theme, so we can't
rely on them being widely available, and will just include them
for now.
Matthias Clasen [Thu, 19 Jul 2018 21:24:11 +0000 (17:24 -0400)]
Emoji chooser: Use icons for sections
This is more reliable than using text-style Emoji
which may not be present.
Based on work by Julian Sparber.
Aurimas Černius [Sat, 28 Jul 2018 17:31:14 +0000 (20:31 +0300)]
Updated Lithuanian translation
Carlos Garnacho [Sat, 28 Jul 2018 10:14:56 +0000 (10:14 +0000)]
Merge branch 'wip/chergert/imwayland-leak' into 'gtk-3-24'
imwayland: fix potential leak of attr list
See merge request GNOME/gtk!277
Christian Hergert [Sat, 28 Jul 2018 06:46:31 +0000 (23:46 -0700)]
imwayland: fix potential leak of attr list
This fixes a potential leak of a PangoAttrList that is set when chaining
up to the parent get_preedit_string(). We check to see if the attr list
was created and reuse it instead of leaking the previous value.
Luca Bacci [Tue, 17 Jul 2018 10:01:54 +0000 (12:01 +0200)]
Gdk-Win32: Correct handling of transient state changes
gdk_win32_window_set_transient_for() behaves incorrectly when
called in sequence with the same arguments. This fix ensures it
always operates correctly.
In some cases this function gets called multiple times with the
same arguments, e.g. when tooltips are shown.
See issue #1214
Benjamin Otte [Tue, 24 Jul 2018 17:44:36 +0000 (19:44 +0200)]
gtk; Deprecate gtk_render_frame_gap()
Use gtk_render_frame() instead.
Benjamin Otte [Tue, 24 Jul 2018 18:32:06 +0000 (20:32 +0200)]
gdk: Add GDK_DEPRECATED_IN_3_24() macros
Daniel Mustieles [Tue, 24 Jul 2018 08:13:50 +0000 (10:13 +0200)]
Updated Spanish translation
segfault [Mon, 23 Jul 2018 21:35:01 +0000 (23:35 +0200)]
gtkplacessidebar: Improve error message when unlocking volume fails
Daniel Mustieles [Mon, 23 Jul 2018 10:07:23 +0000 (10:07 +0000)]
Update Spanish translation
Daniel Mustieles [Mon, 23 Jul 2018 10:02:39 +0000 (10:02 +0000)]
Update Spanish translation
Matthias Clasen [Sun, 22 Jul 2018 17:14:27 +0000 (17:14 +0000)]
Merge branch 'gtk-3-24-add-spinner-to-sidebar-row' into 'gtk-3-24'
gtkplacessidebar: Show busy spinner in sidebar row during mount ops
See merge request GNOME/gtk!260
segfault [Sun, 22 Jul 2018 11:47:46 +0000 (13:47 +0200)]
gtkplacessidebar: Show busy spinner in sidebar row during mount ops
Bastien Nocera [Sat, 21 Jul 2018 12:50:37 +0000 (14:50 +0200)]
test: Fix compile-time warnings
testsuite/gtk/notify.c: In function ‘test_type’:
testsuite/gtk/notify.c:434:14: warning: assignment to ‘GObject *’ {aka ‘struct _GObject *’} from incompatible pointer type ‘GtkSettings *’ {aka ‘struct _GtkSettings *’} [-Wincompatible-pointer-types]
instance = g_object_ref (gtk_settings_get_default ());
^
testsuite/gtk/notify.c:443:16: warning: assignment to ‘GObject *’ {aka ‘struct _GObject *’} from incompatible pointer type ‘GdkWindow *’ {aka ‘struct _GdkWindow *’} [-Wincompatible-pointer-types]
instance = g_object_ref (gdk_window_new (NULL, &attributes, 0));
^
Carlos Garnacho [Fri, 16 Feb 2018 18:25:15 +0000 (19:25 +0100)]
gtksettings: Remove leftover code
The immodule variable is unused
Tim Sabsch [Fri, 20 Jul 2018 20:31:47 +0000 (20:31 +0000)]
Update German translation
Matthias Clasen [Fri, 20 Jul 2018 14:07:44 +0000 (14:07 +0000)]
Merge branch 'gtk-3-24' into 'gtk-3-24'
Remove deprecated functions
See merge request GNOME/gtk!255
Benjamin Otte [Fri, 20 Jul 2018 14:05:12 +0000 (14:05 +0000)]
Merge branch 'wip/muktupavels/deprecate-gtk-css-provider-get-default' into 'gtk-3-24'
gtkcssprovider: deprecate gtk_css_provider_get_default
See merge request GNOME/gtk!257
Alberts Muktupāvels [Thu, 19 Jul 2018 16:20:50 +0000 (19:20 +0300)]
gtkcssprovider: deprecate gtk_css_provider_get_default
This function is unused since
cdc6e8272020 commit and does not
contain fallback style.
https://gitlab.gnome.org/GNOME/gtk/issues/1226
Emin Tufan Çetin [Fri, 20 Jul 2018 11:21:46 +0000 (11:21 +0000)]
Update Turkish translation
Yi-Soo An [Fri, 20 Jul 2018 06:42:26 +0000 (15:42 +0900)]
tests/animated-resizing: Remove deprecated functions
The functions as below are deprecated
- gdk_screen_get_monitor_geometry
- gdk_screen_get_primary_monitor
Instead of them, use functions below
- gdk_monitor_get_geometry
- gdk_display_get_primary_monitor
Yi-Soo An [Fri, 20 Jul 2018 06:40:37 +0000 (15:40 +0900)]
demos/gtk-demo/changedisplay: Remove deprecated gdk_flush
Use gdk_display_flush instead of it.
Yi-Soo An [Fri, 20 Jul 2018 06:39:49 +0000 (15:39 +0900)]
modules/input/gtkimcontextthai: Remove deprecated gdk_beep
Use gdk_display_beep instead of it.
Timm Bäder [Fri, 20 Jul 2018 06:24:14 +0000 (06:24 +0000)]
Merge branch '628-text-view-width' into 'gtk-3-24'
Resolve #628: "TextView: spaces acting as non-breaking whitespace if :left- or :right-margin is set"
See merge request GNOME/gtk!236
Matthias Clasen [Thu, 19 Jul 2018 21:57:19 +0000 (17:57 -0400)]
Emoji chooser: Also check for hex boxes
We don't want to see those either.
Matthias Clasen [Thu, 19 Jul 2018 21:50:54 +0000 (17:50 -0400)]
moji chooser: Try harder to avoid fallback
We don't want to see any fallback rendering.
The current check was still letting some fallback
combinations through.
Based on work by Julian Sparber.
Matthias Clasen [Thu, 19 Jul 2018 20:23:29 +0000 (20:23 +0000)]
Merge branch 'gtk-3-24-defaultvalues-ignore-more' into 'gtk-3-24'
defaultvalue: Ignore more style properties that Adwaita overrides
See merge request GNOME/gtk!253
Iain Lane [Thu, 19 Jul 2018 14:45:48 +0000 (15:45 +0100)]
defaultvalue: Ignore more style properties that Adwaita overrides
These broke once we switched away from Raleigh
Daniel Boles [Wed, 18 Jul 2018 22:09:12 +0000 (23:09 +0100)]
NEWS: Remove an accidental tab
Timm Bäder [Tue, 17 Jul 2018 15:33:09 +0000 (17:33 +0200)]
gesturestylus: Clarify a documentation comment
Use the proper gtkdoc syntax for signals.
Matthias Clasen [Wed, 18 Jul 2018 19:55:30 +0000 (15:55 -0400)]
3.23.1
Piotr Drąg [Wed, 18 Jul 2018 15:00:11 +0000 (17:00 +0200)]
Update POTFILES.in
Matthias Clasen [Wed, 18 Jul 2018 11:18:21 +0000 (07:18 -0400)]
Fix up version annotations
The new api here was introduced in 3.24.
Matthias Clasen [Wed, 18 Jul 2018 11:12:41 +0000 (07:12 -0400)]
Add new API to the docs
Matthias Clasen [Wed, 18 Jul 2018 00:23:37 +0000 (00:23 +0000)]
Merge branch 'wip/carlosg/controllers-backport' into 'gtk-3-24'
Wip/carlosg/controllers backport
See merge request GNOME/gtk!246
Balázs Meskó [Tue, 17 Jul 2018 23:11:18 +0000 (23:11 +0000)]
Update Hungarian translation
Carlos Garnacho [Mon, 16 Jul 2018 13:44:35 +0000 (15:44 +0200)]
sm scroll
Carlos Garnacho [Fri, 2 Feb 2018 15:04:17 +0000 (16:04 +0100)]
demos: Add "Paint" demo
Carlos Garnacho [Thu, 1 Feb 2018 16:52:40 +0000 (17:52 +0100)]
gtk: Add GtkGestureStylus
This is a GtkGesture done to deal with stylus events from drawing tablets.
Those have a special number of characteristics that extend a regular
pointer, so it makes sense to wrap that.
Carlos Garnacho [Thu, 22 Mar 2018 17:32:19 +0000 (18:32 +0100)]
gtkeventcontrollerkey: Add ::focus-in/out signals
And handle GDK_FOCUS_CHANGE events in order to emit those.
Carlos Garnacho [Thu, 22 Mar 2018 16:54:52 +0000 (17:54 +0100)]
gtkeventcontrollerkey: Add get_group() call
Callers can use this function on a key-pressed/released signal
to find out the key event group, useful in a few places.
Carlos Garnacho [Sun, 11 Mar 2018 12:38:19 +0000 (13:38 +0100)]
eventcontrollerkey: Add function to forward stuff elsewhere
Carlos Garnacho [Mon, 11 Dec 2017 18:21:38 +0000 (19:21 +0100)]
gtk: Add GtkEventControllerKey
This event controller is meant to replace usage from key-press/release-event
handlers all through. Optionally it can be set a GtkIMContext, so interaction
is carried by the controller.
Matthias Clasen [Tue, 2 Jan 2018 01:07:24 +0000 (20:07 -0500)]
Add x/y to GtkEventControllerMotion::enter
We have this information available in enter events,
and having it in the controller signal as well makes
porting easier.
Update existing users.
Matthias Clasen [Mon, 11 Dec 2017 23:29:33 +0000 (18:29 -0500)]
Add a simple motion eventcontroller
This can serve as a replacement for the legacy
event signals for enter/leave/motion notify.
Matthias Clasen [Wed, 27 Dec 2017 01:04:07 +0000 (20:04 -0500)]
Avoid excess notification for GdkEventControllerScroll::flags
We have a test that checks this, and it is the right thing to do.
Carlos Garnacho [Tue, 31 Oct 2017 11:45:37 +0000 (12:45 +0100)]
gtk: Remove CONSTRUCT_ONLY flag from GtkEventControllerScroll::flags
There is a gtk_event_controller_scroll_set_flags() call that's meant
to be called after construction (eg. due to scrolledwindow relayouts
hiding/showing scrollbars). The property shouldn't be construct-only
for consistence.
Carlos Garnacho [Fri, 1 Dec 2017 23:18:07 +0000 (00:18 +0100)]
gtkeventcontrollerscroll: Add some docs
Timm Bäder [Wed, 11 Oct 2017 06:06:33 +0000 (08:06 +0200)]
eventcontrollerscroll: Emit ::scroll for -1/+1 discrete steps
The > 1 meant it only emits the signal for -2/+2 steps.
Carlos Garnacho [Fri, 15 Sep 2017 11:22:57 +0000 (13:22 +0200)]
gtk: Add GtkEventControllerScroll
This is a GtkEventController implementation to handle mouse
scrolling. It handles both smooth and discrete events and
offers a way for callers to tell their preference too, so
smooth events shall be accumulated and coalesced on request.
On capable devices, it can also emit ::scroll-begin and
::scroll-end enclosing all ::scroll events for a scroll
operation.
It also has builtin kinetic scrolling capabilities, reporting
the initial velocity for both axes after ::scroll-end if
requested.
Benjamin Otte [Fri, 13 Jul 2018 12:52:43 +0000 (14:52 +0200)]
window: Update opaque region if background-color changes
The opaque region is only set when the background color is opaque. So
we need to do something about it when the background color changes.
However, in the case where a size allocation is going to happen, we
already do this update in size_allocate(), so in that case avoid doing
it twice.
Bruno Lopes da Silva [Tue, 10 Jul 2018 13:02:08 +0000 (13:02 +0000)]
Update Brazilian Portuguese translation
Jakub Steiner [Mon, 9 Jul 2018 15:27:51 +0000 (15:27 +0000)]
Merge branch 'expander-size-3' into 'gtk-3-24'
HighContrast: Restore expander size
See merge request GNOME/gtk!210
Peter Bloomfield [Sun, 8 Jul 2018 21:24:07 +0000 (17:24 -0400)]
text-view: Do not double-allocate borders
Reverts part of Commit
25b67af3
The 'width' part of the commit is the cause of #628: requisition->width
is first set to priv->layout->width, which already includes
priv->left_border + priv->right_border. It's a bit labyrinthine, but
essentially:
* layout->width is set in update_layout_size() (gtktextlayout.c line 992)
as the maximum line width, and
* the line width is set to display->width in gtk_text_layout_real_wrap()
(gtktextlayout.c line 1183), and
* display->width is set to text_pixel_width + h_margin + h_padding in
gtk_text_layout_get_line_display() (gtktextlayout.c line 2584), and
* h_margin + h_padding is the same as priv->left_border +
priv->right_border.
Adding it again leads to an increase in the size-request, which
results in wider lines; rinse and repeat.
Mario Blättermann [Sat, 7 Jul 2018 19:48:26 +0000 (19:48 +0000)]
Update German translation
Samuel Thibault [Thu, 21 Jun 2018 13:58:39 +0000 (15:58 +0200)]
HighContrast: Restore expander size
Expanders used to be 16px high. With the move from the gtk2 rendering
to gtk3 rendering they shrunk to 12px, making them hard to see, because
it's now the icon which is 16px high and the icon contains transparent
borders.
This makes the HighContrast theme use 24px icons instead, to restore
16px expanders. This may expander some containers a bit.
Closes #1046
Jonas Ådahl [Tue, 3 Jul 2018 10:14:57 +0000 (10:14 +0000)]
Merge branch 'fix_wayland_csd_announce' into 'gtk-3-24'
Fix gdk_wayland_window_announce_csd
See merge request GNOME/gtk!221
Daniel Boles [Mon, 2 Jul 2018 20:45:06 +0000 (21:45 +0100)]
Adwaita: Drop some unneeded overrides
The pseudoclasses work fine on the subnodes without having to also apply
`parent:class subnode`.
Daniel Boles [Mon, 2 Jul 2018 19:31:45 +0000 (20:31 +0100)]
ModelButton: Add Since annotation on new prop
Daniel Boles [Mon, 2 Jul 2018 19:11:12 +0000 (20:11 +0100)]
ScrolledWindow: a couple of spelling/grammar fixes
(A) Put a space in "scrolled window" like the other doc comments
(B) Say "i.e." rather than "ie."
(C) Fix grammar from "makes [...] exactly reaches" to "exactly reach"
Daniel Boles [Mon, 2 Jul 2018 19:09:37 +0000 (20:09 +0100)]
ScrolledWindow: Fix/improve doc of key bindings
Saying 'key + modifiers' is really weird, so reverse that, and explain
why there are 2 cited and what the difference between them is.
Daniel Boles [Mon, 2 Jul 2018 19:07:23 +0000 (20:07 +0100)]
ScrolledWindow: Add missing apostrophes
Matthias Clasen [Mon, 2 Jul 2018 17:18:26 +0000 (17:18 +0000)]
Merge branch 'wip/gtk324.win.egl' into 'gtk-3-24'
Add an EGL renderer for GDK-Win32 for GTK+-3.24 (was: merge request !126)
See merge request GNOME/gtk!191
Matthias Clasen [Mon, 2 Jul 2018 17:16:59 +0000 (17:16 +0000)]
Merge branch 'wip/aplazas/modelbutton-markup' into 'gtk-3-24'
ModelButton: Add 'use-markup' property
See merge request GNOME/gtk!219
Daniel Boles [Sun, 1 Jul 2018 15:08:06 +0000 (16:08 +0100)]
PlacesSidebar: Fix warning about signal parameters
@open_flags was not documented, and so:
jhbuild/checkout/gnome/gtk+-3/gtk/gtkplacessidebar.c:4743: Warning: Gtk:
incorrect number of parameters in comment block, parameter annotations
will be ignored.
Adrien Plazas [Mon, 23 Apr 2018 09:06:17 +0000 (11:06 +0200)]
ModelButton: Add 'use-markup' property
Binds this property to the button's label, allowing a model button to
have text with markup.
This will be convenient for buttons like 'Online Accounts <sup>↗</sup>'.
Daniel Boles [Fri, 29 Jun 2018 18:02:15 +0000 (19:02 +0100)]
themes: Remove Raleigh
It has been extremely broken since the move to CSS gadgets/nodes, so
clearly no one is depending on it; nor does anyone seem to want to
resurrect it, and writing a Raleigh-inspired theme from scratch would be
faster if they did. So let's drop the dead weight from the build and lib
Now that we don't have Raleigh, the defaultvalue test has to be changed
to set Adwaita before checking the default values of style properties -
some of which Adwaita overrides in its CSS, meaning those would fail.
Not that it passed before anyway! But it does now after my other commit.
Note that I leave the last reference in gtk-zip.sh.in alone since that
hasn't been touched in 8 years and probably has plenty other problems...
Close https://gitlab.gnome.org/GNOME/gtk/issues/1187
Daniel Boles [Fri, 29 Jun 2018 18:57:06 +0000 (19:57 +0100)]
defaultvalue: Fix some very broken indentation
and while here, use the more typical : to separate the type and property
Daniel Boles [Fri, 29 Jun 2018 17:53:54 +0000 (18:53 +0100)]
defaultvalue: Ignore property to actually pass
GtkFontChooserWidget:tweak-action gets set in init(), so we have to skip
testing that it is the default NULL for a GObject, or the test fails.
Daniel Boles [Fri, 29 Jun 2018 17:38:15 +0000 (18:38 +0100)]
defaultvalue: Stop warnings via new g_object_ref()
Now that it can propagate the type, we must explicitly cast to GObject*
to assign it, otherwise gcc shouts.